package com.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/apollo")
public class ApolloController {

	private static Logger logger = LoggerFactory.getLogger(ApolloController.class);

	@Value("${spring.redis.password:default}")
	private String key1;

	@RequestMapping("/getKey1")
	public String getKey1(){
		logger.trace("---------------trace:key1:" + key1);
		logger.debug("---------------debug:key1:" + key1);
		logger.info("---------------info:key1:" + key1);
		logger.warn("---------------warn:key1:" + key1);
		return key1;
	}
}
